<%-- 
    Document   : register
    Created on : Jan 12, 2013, 1:51:39 AM
    Author     : SONY
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%
    String error = "";
    if(request.getAttribute("error") != null) {
        error = request.getAttribute("error").toString();
    }
%>
<p style="font-weight:bold;color:red;"><%=error%></p>
<%-- Report any errors (if any) --%>
<html:errors />
<br/>
<br/>
<%-- Generate main body --%>
<html:form action="/nonmember/register.do" method="POST" acceptCharset="UTF-8">
    <fieldset class="register">
        <legend class="lgend">Thông Tin Tài Khoản Đăng Nhập</legend>
    <table width=400 border=0 cellpadding="5px">
        <tr>
            <td width=200><span class="required">*&nbsp;</span>Email</td>
            <td width=200>
                <%-- Repopulate the Email field --%>
                <html:text property="email" styleClass="txtMask" style="width: 200px;" />
            </td>
        </tr>
        <tr>
            <td><span class="required">*&nbsp;</span>Mật Khẩu</td>
            <td>
                <%-- Repopulate the Password field --%>
                <html:password property="password" styleClass="txtMask" style="width: 200px;" />
            </td>
        </tr>
        <tr>
            <td><span class="required">*&nbsp;</span>Nhập Lại Mật Khẩu</td>
            <td>
                <%-- Repopulate the Password field --%>
                <html:password property="confirmpass" styleClass="txtMask" style="width: 200px;" />
            </td>
        </tr>
    </table>
    </fieldset>
    <p>&nbsp;</p>
    <fieldset class="register">
        <legend class="lgend">Thông Tin Giao Hàng</legend>
    <table width=400 border=0 cellpadding="5px">
        <tr>
            <td width=200><span class="required">*&nbsp;</span>Họ và Chữ Lót</td>
            <td width=200>
                <%-- Repopulate the LastName field --%>
                <html:text property="lastName" styleClass="txtMask" style="width: 200px;" />
            </td>
        </tr>
        <tr>
            <td><span class="required">*&nbsp;</span>Tên</td>
            <td>
                <%-- Repopulate the FirstName field --%>
                <html:text property="firstName" styleClass="txtMask" style="width: 200px;" />
            </td>
        </tr>
        <tr>
            <td><span class="required">*&nbsp;</span>Giới Tính<br /></td>
            <td>
                <%-- Repopulate the Gender drop-down menu --%>
                <html:select property='gender' styleClass="txtMask" style="width: 60px;">
                <html:option value="F">Nữ</html:option>
                <html:option value="M">Nam</html:option>
                </html:select>
            </td>
        </tr>
        <tr>
            <td><span class="required">*&nbsp;</span>Điện Thoại Liên Hệ</td>
            <td>
                <%-- Repopulate the Phone field --%>
                <html:text property="phone" styleClass="txtMask" style="width: 200px;" />
            </td>
        </tr>
        <tr>
            <td><span class="required">*&nbsp;</span>Địa Chỉ (số nhà, đường)</td>
            <td>
                <%-- Repopulate the Street field --%>
                <html:text property="street" styleClass="txtMask" style="width: 200px;" />
            </td>
        </tr>
        <tr>
            <td><span class="required">*&nbsp;</span>Phường</td>
            <td>
                <%-- Repopulate the Ward field --%>
                <html:text property="ward" styleClass="txtMask" style="width: 200px;" />
            </td>
        </tr>
        <tr>
            <td><span class="required">*&nbsp;</span>Quận / Huyện</td>
            <td>
                <%-- Repopulate the District field --%>
                <html:text property="district" styleClass="txtMask" style="width: 200px;" />
            </td>
        </tr>
        <tr>
            <td><span class="required">*&nbsp;</span>Thành Phố / Thị Xã</td>
            <td>
                <%-- Repopulate the City field --%>
                <html:text property="city" styleClass="txtMask" style="width: 200px;" />
            </td>
        </tr>
        <tr>
            <td><span class="required">*&nbsp;</span>Tỉnh</td>
            <td>
                <%-- Repopulate the Province drop-down menu --%>
                <html:select property='province' styleClass="txtMask" style="width: 100px;">
                <html:option value="Hồ Chí Minh">Hồ Chí Minh</html:option>
                <html:option value="Cần Thơ">Cần Thơ</html:option>
                <html:option value="Hải Phòng">Hải Phòng</html:option>
                <html:option value="Đà Nẵng">Đà Nẵng</html:option>
                <html:option value="Hà Nội">Hà Nội</html:option>
                </html:select>
            </td>
        </tr>
    </table>
    </fieldset>
                <%-- The submit button --%>
                <html:submit style="margin-left: 230px; margin-top: 10px;" value="Đăng Ký" styleClass="btnMask"/>
</html:form>